package com.migu.contacts.widget;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.BaseObservable;

import com.frank.libandroid.widget.BaseView;
import com.migu.contacts.databinding.CommonLabel2Binding;

public class Label2 extends BaseView<CommonLabel2Binding> {

    public Label2(@NonNull Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public Label2(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    public static class LabelBean extends BaseObservable {
        public String left;
        public String right;
        public boolean showArrow;
        public int resId;

        public LabelBean(String left, String right, int resId, boolean showArrow) {
            this.left = left;
            this.right = right;
            this.resId = resId;
            this.showArrow = showArrow;
        }
    }
}
